// OCXDemoPpg.cpp : Implementation of the COCXDemoPropPage property page class.

#include "stdafx.h"
#include "OCXDemo.h"
#include "OCXDemoPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(COCXDemoPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(COCXDemoPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(COCXDemoPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(COCXDemoPropPage, "OCXDEMO.OCXDemoPropPage.1",
	0xdeaed275, 0x14c9, 0x4ca1, 0x96, 0x20, 0x64, 0xf5, 0x5d, 0x41, 0x3b, 0x29)


/////////////////////////////////////////////////////////////////////////////
// COCXDemoPropPage::COCXDemoPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for COCXDemoPropPage

BOOL COCXDemoPropPage::COCXDemoPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_OCXDEMO_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// COCXDemoPropPage::COCXDemoPropPage - Constructor

COCXDemoPropPage::COCXDemoPropPage() :
	COlePropertyPage(IDD, IDS_OCXDEMO_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(COCXDemoPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// COCXDemoPropPage::DoDataExchange - Moves data between page and properties

void COCXDemoPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(COCXDemoPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// COCXDemoPropPage message handlers
